<?php

namespace app\controller;

use app\BaseController;

class Qrcode extends BaseController
{
    public function product_code()
    {
        $code = request()->param('code');
        $qrcode = $this->app->make(\app\Qrcode::class);
        $code = $qrcode->createQrcode($code,220);
        return $qrcode->files($code);
    }
}
